home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
eue10.zip
/
USERATCK.PRG
< prev
next >
Wrap
Text File
|
1992-12-29
|
2KB
|
61 lines
*Extended User Editor (useratck) - version 1.0 12/30/92 (c) 1992 James E. Swarm
*
*This version of the program is fully working, and is to be considered
*shareware. If you use this software I ask that you register it with
*a donation to my BBS. Registered users will receive full tdbs source
*(available for download) for both the USERLIST and USEREDIT program.
*A donation is $20.00 or higher... thats up to you, but the better
*responce I get, the more I will update the programs.
*
*Please send all donations to:
*
*James E. Swarm
*
*P.O. Box 361093
*Strongsville, Ohio 44136
*BBS (216)237-4980
*
SET EXCLUSIVE OFF
SET ESCAPE OFF
PUBLIC up_byte,down_byte,upload,download,set
if uansi()
set color to w+
endif
use "useredit"
set index to "username"
user = uname()
seek user
if .NOT. found()
? ""
? "User Database Record Not Found, please contact sysop."
? ""
wait
quit
endif
up_byte = ulpeek(139,4)
down_byte = ulpeek(135,4)
level = upriv()
? "Your Upload/Download Ratio Settings:"
? ""
? "Access Level : " level
? "Ratio (Up/Down): 1 to" str(f_ratio1,2)
? "Uploaded Bytes : " up_byte
? "Downloaded Bytes: " down_byte
? ""
if down_byte >= up_byte * f_ratio1
dl_byte = ((up_byte * f_ratio1)/ down_byte)
? "You must upload" int(dl_byte) "bytes before you can download again."
? ""
else
dl_byte = ((up_byte * f_ratio1)- down_byte)
? "You may download" int(dl_byte) "bytes before you have to upload."
? ""
ENDIF
type ratio.txt
? "-Press Any Key-"
key=0
do while key=0
key = inkey()
enddo
QUIT